package cn.tedu.csmall.product.dao.persist.mapper;

import cn.tedu.csmall.product.pojo.entity.Spu;
import cn.tedu.csmall.product.pojo.vo.SpuFullInfoVO;
import cn.tedu.csmall.product.pojo.vo.SpuListItemVO;
import cn.tedu.csmall.product.pojo.vo.SpuStandardVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SpuMapper extends BaseMapper<Spu> {
    int insertBatch(List<Spu> spuList);

    SpuStandardVO getStandardById(Long id);

    SpuFullInfoVO getFullInfoById(Long id);

    List<SpuListItemVO> list();

}
